package io.renren.modules.app.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.JsonResult;
import io.renren.common.utils.StatusCode;
import io.renren.modules.app.dao.ReportBankaccDao;
import io.renren.modules.app.dao.UserDao;
import io.renren.modules.app.entity.UserEntity;
import io.renren.modules.app.service.AppPrimalAmountWebService;
import io.renren.modules.app.service.AppReportBankaccService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service("primalAmountWebService")
public class AppPrimalAmountWebServiceImpl extends ServiceImpl<UserDao, UserEntity> implements AppPrimalAmountWebService {

    @Autowired
    private ReportBankaccDao reportBankaccDao;

    @Override
    public JsonResult primalAmountWebService() {
        //  List<Map<String, Object>> listMap = new ArrayList<Map<String, Object>>();
        List<Map<String, Object>> list = reportBankaccDao.primalAmountWebService();


        return new JsonResult(StatusCode.OK, list);

        //  return R.ok().put("data", list);
    }

}
